package com.huazhen.itrip.biz.service.hotelroom;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.huazhen.itrip.beans.pojo.ItripHotelRoom;
import com.huazhen.itrip.beans.vo.hotelroom.ItripHotelRoomVO;
import com.huazhen.itrip.dao.hotelroom.ItripHotelRoomMapper;
@Service("ItripHotelRoomService")
public class ItripHotelRoomServiceImpl implements ItripHotelRoomService {
	@Autowired
	private ItripHotelRoomMapper itripHotelRoomMapper;
	@Override
	public ItripHotelRoom getItripHotelRoomById(Long id) throws Exception {
		// TODO Auto-generated method stub
		return itripHotelRoomMapper.getItripHotelRoomById(id);
	}

	@Override
	public List<ItripHotelRoomVO> getItripHotelRoomListByMap(Map<String, Object> param) throws Exception {
		// TODO Auto-generated method stub
		return itripHotelRoomMapper.getItripHotelRoomListByMap(param);
	}

	@Override
	public Integer getItripHotelRoomCountByMap(Map<String, Object> param) throws Exception {
		// TODO Auto-generated method stub
		return itripHotelRoomMapper.getItripHotelRoomCountByMap(param);
	}

	@Override
	public Integer insertItripHotelRoom(ItripHotelRoom itripHotelRoom) throws Exception {
		// TODO Auto-generated method stub
		return itripHotelRoomMapper.insertItripHotelRoom(itripHotelRoom);
	}

	@Override
	public Integer updateItripHotelRoom(ItripHotelRoom itripHotelRoom) throws Exception {
		// TODO Auto-generated method stub
		return itripHotelRoomMapper.updateItripHotelRoom(itripHotelRoom);
	}

	@Override
	public Integer deleteItripHotelRoomById(Long id) throws Exception {
		// TODO Auto-generated method stub
		return itripHotelRoomMapper.deleteItripHotelRoomById(id);
	}

}
